package com.baor.controller;

import com.baor.domain.conf.ScoreConf;
import com.baor.service.VipScoreService;
import com.baor.utils.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/vipScore")
public class VipScoreController {

    @Autowired
    private VipScoreService service;

    @RequestMapping("/vipScoreUserList")
    public AjaxResult<?> vipScoreUserList(@RequestBody Map<String, Object> params) {
        return service.vipScoreUserList(params);
    }

    @RequestMapping("/conf")
    public AjaxResult<?> conf(@RequestBody ScoreConf conf){
        return service.conf(conf);
    }

    @RequestMapping("/infoConf/{siteId}")
    public AjaxResult<?> info(@PathVariable Integer siteId){
        return service.info(siteId);
    }

}
